// 商品收藏接口
export interface ProductCollect {
  id: string
  userId: string
  productId: string
}

// 后端返回的商品数据类型接口
export interface Product {
  id: string
  userId: string
  title: string
  intro: string
  image: string
  price: number
  originalPrice: number
  typeId: string
  postType: number
  likeCount: number
  adcode: string
  province: string
  city: string
  district: string
  status: number
  createTime: string
  avatar: string
  nickName: string
}

// 前端传递的商品数据类型接口
export interface PublishProductForm {
  userId: string
  title: string
  intro: string
  image: string
  price: number | undefined
  originalPrice: number | undefined
  typeId: string // 商品分类编码
  postType: number | undefined // 发货方式
  likeCount: number | undefined
  status: number | undefined
  adcode: string // 行政区划代码
  province: string
  city: string
  district: string
}

export interface prductType {

  id: string
  typeCode: string
  typeName: string

}
